package cn.zxyh.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 *  用户表
 *  包含用户的基本信息，分为普通用户与管理员
 */
public class User {
	private int id;
	private String username;		//用户名
	private String password;		//密码
	private int status;				//状态 0 普通用户	1 管理员
	private String cardNumber;		//银行卡号

	public int getStatus() {
		return status;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getId() {
		return id;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", status=" + status +
				", cardNumber='" + cardNumber + '\'' +
				'}';
	}
}
